package com.ian;

import com.ian.config.FeignConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 启动程序
 *
 * @author witt
 */
@EnableFeignClients(defaultConfiguration = FeignConfig.class)
//@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class}) 不能去掉默认数据源自动配置类，否则会找不到dataSource的bean
@SpringBootApplication
public class AuthApplication {
    public static void main(String[] args) {
        SpringApplication.run(AuthApplication.class, args);
    }
}
